package com.kch.system.service.impl;

import com.kch.system.domain.AuditRecord;
import com.kch.system.mapper.AuditRecordMapper;
import com.kch.system.service.AuditRecordService;
import com.kch.system.vo.AuditRecordVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuditRecordServiceImpl implements AuditRecordService {

    @Autowired
    private AuditRecordMapper auditRecordMapper;

    @Override
    public int insertAuditRecord(AuditRecord auditRecord) {
        return auditRecordMapper.insert(auditRecord);
    }

    @Override
    public List<AuditRecordVO> selectByBusId(Integer busId, String type) {
        return auditRecordMapper.selectByBusId(busId, type);
    }
}
